package com.mercator.client.map;
import com.google.gwt.user.client.ui.Widget;
import com.mercator.client.graph.GenType;
import com.mercator.client.graph.MapName;
import com.mercator.client.map.presenter.MapPresenter;
import com.mercator.client.map.view.MapView;
import com.mvp4g.client.annotation.Event;
import com.mvp4g.client.annotation.Events;
import com.mvp4g.client.annotation.module.AfterLoadChildModule;
import com.mvp4g.client.annotation.module.BeforeLoadChildModule;
import com.mvp4g.client.event.EventBus;
import com.mercator.client.graph.GeneSet;
import java.util.Collection;
import java.util.Set;


@Events( startView = MapView.class, module = MapModule.class )
public interface MapEventBus extends EventBus {
	
	
	@BeforeLoadChildModule
	@Event(handlers = MapPresenter.class)
	public void beforeLoad();
	
	@Event(handlers = MapPresenter.class)
	public void goToMap(MapName name);
	

	@Event(forwardToParent = true)
	void changeBody(Widget w);
	
	@Event(forwardToParent = true)
	public void changeMap(Set<? extends GenType> w);
	
	
}
